package com.potenza.business.mapper;

import java.util.List;

import com.potenza.business.domain.DishesTypeDTO;
import com.potenza.business.domain.TbDishesType;

/**
 * dishMapper接口
 * 
 * @author ruoyi
 * @date 2023-04-21
 */
public interface TbDishesTypeMapper 
{
    /**
     * 查询dish
     * 
     * @param id dish主键
     * @return dish
     */
    public TbDishesType selectTbDishesTypeById(Long id);

    /**
     * 查询dish列表
     * 
     * @param tbDishesType dish
     * @return dish集合
     */
    public List<TbDishesType> selectTbDishesTypeList(TbDishesType tbDishesType);

    /**
     * 新增dish
     * 
     * @param tbDishesType dish
     * @return 结果
     */
    public int insertTbDishesType(TbDishesType tbDishesType);

    /**
     * 修改dish
     * 
     * @param tbDishesType dish
     * @return 结果
     */
    public int updateTbDishesType(TbDishesType tbDishesType);

    /**
     * 删除dish
     * 
     * @param id dish主键
     * @return 结果
     */
    public int deleteTbDishesTypeById(Long id);

    /**
     * 批量删除dish
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbDishesTypeByIds(Long[] ids);


    public List<DishesTypeDTO> selectTreeDishTypeDTO();
}
